package com.uyayo.portal.vo;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

public class LoginVO {
	
	@NotNull(message = "{loginname.null}")
	@Size(min = 5, max = 36, message = "{loginname.size.error}")
	private String username;
	
	@NotNull(message = "{password.null}")
	@Size(min = 5, max = 36, message = "{password.size.error}")
	private String password;
	
	@Pattern(regexp = "[a-zA-Z0-9]{1,4}", message = "{captcha.format.error}")
	private String captcha;

	
	private boolean remember;
	
	private boolean automaticLogin;
	
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getCaptcha() {
		return captcha;
	}

	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}

	public boolean isRemember() {
		return remember;
	}

	public void setRemember(boolean remember) {
		this.remember = remember;
	}

	public boolean isAutomaticLogin() {
		return automaticLogin;
	}

	public void setAutomaticLogin(boolean automaticLogin) {
		this.automaticLogin = automaticLogin;
	}
	
	
}
